package com.lokyiu.mybible.domain;

public class Verse {
	private String bibleBook, content;
	private int chapter, verse;

	public Verse(String bibleBook, int chapter, int verse, String content) {
		this.bibleBook = bibleBook;
		this.chapter = chapter;
		this.verse = verse;
		this.content = content;
	}

	public Verse(String bibleBook, int verse, String content) {
		this.bibleBook = bibleBook;
		this.verse = verse;
		this.content = content;
	}

	public String getBibleBook() {
		return bibleBook;
	}

	public int getChapter() {
		return chapter;
	}

	public int getVerse() {
		return verse;
	}

	public String getContent() {
		return content;
	}

	@Override
	public boolean equals(Object obj) {
		Verse objToCompare = (Verse) obj;
		return this.getBibleBook().equals(objToCompare.getBibleBook())
				&& this.getChapter() == objToCompare.getChapter()
				&& this.getVerse() == objToCompare.getVerse()
				&& this.getContent().trim().equals(objToCompare.getContent().trim());
	}
}
